Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kie-issues#130: chrome-extension: Kogito icon is not working correctly after using the browser "back" #2134

Closed
wants to merge 3 commits into from

Conversation

kbowers-ibm
Copy link
Contributor

@kbowers-ibm kbowers-ibm commented Jan 30, 2024

@tiagobento tiagobento changed the title kie-issues#130: Kogito icon is not working correctly after using the browser "back" kie-issues#130: chrome-extension: Kogito icon is not working correctly after using the browser "back" Jan 30, 2024
Comment on lines +168 to +174
export function cleanupDuplicateElements(id: string, selectors: string[]) {
selectors.forEach((selector) => {
Array.from(document.querySelectorAll(`.${selector}.${id}`)).forEach((e) => {
removeAllChildren(e);
});
});
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently this function is receiving classes and building a selector in a strictly way. You could improve this function by building the selectors before passing it down to the function. This way the caller can pass down a different selector if required.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point thanks Luiz, will update it accordingly

@kbowers-ibm kbowers-ibm added pr: DO NOT MERGE Draft PR, not ready for merging area:core labels Feb 2, 2024
@kbowers-ibm
Copy link
Contributor Author

After merging with main, the fix no longer works due to a bug apache/incubator-kie-issues#899. Probably best not to merge until the bug is resolved.

@jomarko
Copy link
Contributor

jomarko commented Feb 6, 2024

may I ask you to include me into reviewers once ready? I would like to doble check effect of the changes for the different github instances

@tiagobento
Copy link
Contributor

Closing due to inactivity.

@tiagobento tiagobento closed this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core pr: DO NOT MERGE Draft PR, not ready for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chrome-extension: Kogito icon is not working correctly after using the browser "back"
4 participants